<?php

class CategoryProduct extends Eloquent {

	protected $table = "category_product";
	protected $primaryKey = "Category_id";

	public function product()
	{
		return $this->hasOne('Product', 'id');
	}

	public function category()
	{
		return $this->hasOne('Category', 'id');
	}
}